<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
>
	<p:dialog id="dialogoAlteracaoSenha" header="Alteração de Senha" widgetVar="dialogoAlteracaoSenha" width="500"
		appendToBody="true" modal="true" resizable="false">  
		<h:form id="formAlteracaoSenha">
			<div class="prompt-div-label">Senha Antiga</div>
			<div class="prompt-div-campo">
				<p:password feedback="false" id="_senhaAntiga" 
					widgetVar="_senhaAntiga" styleClass="ui-inputfield ui-widget ui-state-default ui-corner-all input-mp"
					value="#{professorBean.alteracao_senhaAntiga}" required="true" requiredMessage="Informa a senha antiga"/>
			</div>
			<div class="prompt-div-label">Nova Senha</div>
			<div class="prompt-div-campo">
				<h:inputSecret id="_senhaNova" 
					widgetVar="_senhaNova" styleClass="ui-inputfield ui-widget ui-state-default ui-corner-all input-mp"
					value="#{professorBean.alteracao_senhaNova}" required="true" requiredMessage="Informa a nova senha"/>
			</div>
			<div class="prompt-div-label">Confirmacao de Nova Senha</div>
			<div class="prompt-div-campo">
				<h:inputSecret id="_senhaNovaConfirmacao"
					widgetVar="_senhaNovaConfirmacao" styleClass="ui-inputfield ui-widget ui-state-default ui-corner-all input-mp"
					value="#{professorBean.alteracao_senhaNovaConfirmacao}" required="true" requiredMessage="Confirme a nova senha"/>
			</div>
			<div class="clear"></div>
      		<div style="float:none; text-align: right;">
      			<p:separator/>
                <p:commandButton update="formPrincipal" action="#{professorBean.alterarSenha}" value="Salvar" onclick="dialogoAlteracaoSenha.hide()"/>
                <p:commandButton type="button" value="Cancelar" onclick="dialogoAlteracaoSenha.hide()"/>
			</div>
		</h:form>
	</p:dialog>
</html>